import { RouteConfig } from "vue-router"

export const shopRouter: RouteConfig[] = [
    {
        path:"shoplist",
        name:"shoplist",
        component:()=> import("@/views/shop/shop.vue"),
        meta:{
            roles:['admin','editor']
        }
    },
    {
       path:"shopedit",
        component:()=> import("@/views/shop/shop.vue"),
        meta:{
            roles:['admin','editor']
        },
        children:[
            {
                path:"/",
                name:"shopfirst",
                component:()=>import("@/views/user/userfirst.vue"),
                meta:{
                    roles:['admin']
                }
            }
        ]
    }
]